import {get,post,put,del} from "@/utils/request.js";

export function materialPageService(data){
    return get("/material/page",data)
}

export function materialAddService(data){
    return post("/material",data)
}

export  function materialEditService(data){
    return put("/material",data)
}

export  function materialStatusEditService(data){
    return put("/material/status",data)
}

// 批量删除
export  function materialDeleteService(data){
    return del("/material",data)
}

// 根据供应商或仓库查询商品名称
export  function materialNameService(data){
    return get("/material/findByVendorId",data)
}